<template>
  <div class="flow-line">
    <el-steps style="max-width: 100%" :active="props.activeStep" align-center>
      <el-step v-for="(item, index) in stepList" :title="item" :key="index" />
    </el-steps>
  </div>
</template>

<script lang="ts" setup>
const props = defineProps({
  activeStep: {
    type: Number,
    default: 1,
  },
  finishStatus: {
    type: String,
    default: "success",
  },
});

const stepList = [
  "试验样本选择",
  "静态特征向量一致性评估",
  "动态特征向量相似性计算",
  "结果可视化展示",
];
</script>
<style lang="scss" scoped>
.flow-line {
  padding: 10px 16px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  :deep() {
    .el-step__title {
      font-size: 14px;
      line-height: 20px;
    }
    .el-step__title.is-process {
      color: #a8abb2;
      font-weight: 500;
    }
    .el-step__title.is-finish {
      color: rgb(1, 18, 90);
      font-weight: 600;
    }
    .el-step__head.is-finish {
      color: rgb(1, 18, 90);
      border-color: rgb(1, 18, 90);
    }
  }
}
</style>
